home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Selection Problem
- Sent: 6/27/96 10:51 AM
- Received: 6/27/96 11:22 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Then I must change the cursor to reflect this. But FW_CView::AdjustCursor
- >does not gives me the null event to let me know if the command key is
- >down...
- >
-
- The problem is that Adjustcursor is not called from HandleIdle but from
- the OpenDoc MouseEnter/Within/Leave methods. OpenDoc doesn't provide a
- event record at this time. ODF has a bunch of methods in FWEventU.h to
- test if the command/shift/option keys are pressed without having a event
- record.
-
- >And I may have another problem. If the user presses the command key while
- >inside the selection without moving the mouse, then I must change the
- >cursor. Will OpenDoc/ODF call AdjustCursor in that case? I know this is an
- >old MacOS problem because WaitNextEvent does not gives control back to the
- >application unless the cursor is moved. I have seen articles giving a
- >solution that involves trap patching. With Copland nearby (more or less),
- >this is no more a solution, specially in an OpenDoc context.
-
- That's a problem because OpenDoc is not going to call the HandleEvent
- method when the command key is pressed. The only solution is to register
- for idle time and test the command key during null events.
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-